import Vue from 'vue'
import VueRouter from 'vue-router'
import Vuex from 'vuex'
import store from '../store/store'
import ElementUI from 'element-ui'

import '../../theme/index.css'
import '../css/common.css'   //公共样式文件
import App from '../App.vue'

import common from './common.js'
Vue.use(common);


//语言包
import language from '../local/language'
Vue.prototype.language=language
//条码生成
import jsbarcode from 'jsbarcode'
Vue.prototype.jsbarcode=jsbarcode

// import en from 'element-ui/lib/locale/lang/en'
// import zhCN from 'element-ui/lib/locale/lang/zh-CN'
// import locale from 'element-ui/lib/locale'
// Vue.use(ElementUI, { locale })
// Vue.prototype.locale=locale;
// Vue.prototype.en=en;
// Vue.prototype.zhCN=zhCN;
// locale.use(zhCN);


/*ajax请求服务地址*/
var global_service = "rest-api/";     //
var metadata_service = "http://127.0.0.1:18082/";     // 权限、备件   18082
var procurement_service = "http://127.0.0.1:18082/";   // 采购、计划   18083
// var procurement_service = global_service + "pscm-procurement/";   // 采购、计划   18083
var iwm_service = "http://127.0.0.1:18082/";    // 库存设置   18089
var base_service = "http://127.0.0.1:18083/";    // 库存设置   18089

Vue.prototype.metadata_service=metadata_service;
Vue.prototype.procurement_service=procurement_service;
Vue.prototype.iwm_service=iwm_service;
Vue.prototype.base_service=base_service;

Vue.config.productionTip = false;   //避免输出警告
Vue.use(VueRouter);
Vue.use(ElementUI);  // 设置语言, { enLocale }
Vue.use(Vuex);

//全局注册组件
//省市区县5级联动
import address from '../components/common/address.vue'
Vue.component("v-address",address);
//选择备件
import selectSpare from '../components/common/selectSpare.vue'
Vue.component("v-selectSpare",selectSpare);
//选择备件替换组
import selectSpareGroup from '../components/common/selectSpareGroup.vue'
Vue.component("v-selectSpareGroup",selectSpareGroup);
//选择供应商
import selectSupplier from '../components/common/selectSupplier.vue'
Vue.component("v-selectSupplier",selectSupplier);
//NTF5个Tab页组件
import MaintenanceSpareSampling from '../components/EngineeringManagement/QualityTesting/NTFcomponents/MaintenanceSpareSampling.vue'
Vue.component("v-MaintenanceSpareSampling",MaintenanceSpareSampling);
import MaintenanceSampling from '../components/EngineeringManagement/QualityTesting/NTFcomponents/MaintenanceSampling.vue'
Vue.component("v-MaintenanceSampling",MaintenanceSampling);
import SpareSampling from '../components/EngineeringManagement/QualityTesting/NTFcomponents/SpareSampling.vue'
Vue.component("v-SpareSampling",SpareSampling);
import ProductLineSampling from '../components/EngineeringManagement/QualityTesting/NTFcomponents/ProductLineSampling.vue'
Vue.component("v-ProductLineSampling",ProductLineSampling);

const router=new VueRouter({
    //routes (缩写)相当于routes:routes
    routes :[
        {
            name:"Login",
            path:'/',
            component:function(resolve){
                require(['../components/Login.vue'], resolve);
            }
        },
        {   //主页面
            name:"Main",
            path:'/Main',
            component:function(resolve){
                require(['../components/Main.vue'], resolve);
            },
            children:[
                {
                    name:"ManagementUnit",
                    path:'/ManagementUnit',
                    // component:ManagementUnit,
                    component:function(resolve){
                        require(['../components/SystemConfiguration/ManagementUnit.vue'], resolve);
                    }
                },
                {
                    name:"localStaff",
                    path:'/LocalStaff',
                    // component:LocalStaff,
                    component:function(resolve){
                        require(['../components/SystemConfiguration/UserConfiguration/LocalStaff.vue'], resolve);
                    }
                },
                {
                    name:"businessPartner",
                    path:'/BusinessPartner',
                    // component:BusinessPartner,
                    component:function(resolve){
                        require(['../components/SystemConfiguration/UserConfiguration/BusinessPartner.vue'], resolve);
                    }
                },
                {
                    name:"servicePersonnel",
                    path:'/ServicePersonnel',
                    // component:ServicePersonnel,
                    component:function(resolve){
                        require(['../components/SystemConfiguration/UserConfiguration/ServicePersonnel.vue'], resolve);
                    }
                },
                {
                    name:"serviceLegalPerson",
                    path:'/serviceLegalPerson',
                    // component:ServicePersonnel,
                    component:function(resolve){
                        require(['../components/SystemConfiguration/UserConfiguration/LegalPerson.vue'], resolve);
                    }
                },
                {
                    name:"wangzhijie",
                    path:'/wangzhijie',
                    // component:ServicePersonnel,
                    component:function(resolve){
                        require(['../components/SystemConfiguration/UserConfiguration/WangZhiJie.vue'], resolve);
                    }
                },

                {
                    name:"gaoxiaolong",
                    path:'/gaoxiaolong',
                    // component:ServicePersonnel,
                    component:function(resolve){
                        require(['../components/SystemConfiguration/UserConfiguration/GaoXiaoLong.vue'], resolve);
                    }
                },
                {
                    name:"maguangyi",
                    path:'/maguangyi',
                    // component:ServicePersonnel,
                    component:function(resolve){
                        require(['../components/SystemConfiguration/UserConfiguration/MaGuangYi.vue'], resolve);
                    }
                },
                {
                    name:"roleManagement",
                    path:'/RoleManagement',
                    // component:RoleManagement,
                    component:function(resolve){
                        require(['../components/SystemConfiguration/PrivilegeManagement/RoleManagement.vue'], resolve);
                    }
                },
                {
                    name:"personnelEmpowerment",
                    path:'/PersonnelEmpowerment',
                    // component:PersonnelEmpowerment,
                    component:function(resolve){
                        require(['../components/SystemConfiguration/PrivilegeManagement/PersonnelEmpowerment.vue'], resolve);
                    }
                },
                {
                    name:"roleQuery",
                    path:'/RoleQuery',
                    // component:RoleQuery,
                    component:function(resolve){
                        require(['../components/SystemConfiguration/PrivilegeManagement/RoleQuery.vue'], resolve);
                    }
                },
                {
                    name:"SpareFile",
                    path:'/SpareFile',
                    // component:SpareFile,
                    component:function(resolve){
                        require(['../components/BasicData/SpareFile/SpareFile.vue'], resolve);
                    }
                },
                {
                    name:"UpdateSpare/:materialCode",
                    path:'/UpdateSpare',
                    // component:UpdateSpare,
                    component:function(resolve){
                        require(['../components/BasicData/SpareFile/UpdateSpare.vue'], resolve);
                    }
                },   //修改备件
                {
                    name:'CheckQuotation',
                    path:'/CheckQuotation',
                    // component:CheckQuotation,
                    component:function(resolve){
                        require(['../components/Quotation/CheckQuotation.vue'], resolve);
                    }
                },
                {
                    name:"PlanSummary",
                    path:'/PlanSummary',
                    // component:PlanSummary,
                    component:function(resolve){
                        require(['../components/PlanSummary/PlanSummary.vue'], resolve);
                    }
                },
                {
                    name:"SummaryDetails",
                    path:'/SummaryDetails',
                    // component:SummaryDetails,
                    component:function(resolve){
                        require(['../components/PlanSummary/SummaryDetails.vue'], resolve);
                    }
                } ,      //汇总计划明细
                {
                    name:"ReplacementConfirmation",
                    path:'/ReplacementConfirmation',
                    // component:ReplacementConfirmation,
                    component:function(resolve){
                        require(['../components/SparePlan/ReplacementConfirmation.vue'], resolve);
                    }
                } ,   //替换确认
                {
                    name:"QuotationSheet",
                    path:'/QuotationSheet',
                    // component:QuotationSheet,
                    component:function(resolve){
                        require(['../components/Quotation/QuotationSheet.vue'], resolve);
                    }
                },  //报价清单
                {
                    name:'Quotation',
                    path:'/Quotation',
                    // component:Quotation,
                    component:function(resolve){
                        require(['../components/Quotation/Quotation.vue'], resolve);
                    }
                }, //报价单
                {
                    name:'CreateQuotation',
                    path:'/CreateQuotation',
                    // component:CreateQuotation,
                    component:function(resolve){
                        require(['../components/Quotation/CreateQuotation.vue'], resolve);
                    }
                }, //创建报价单
                {
                    name:'QuotationList',
                    path:'/QuotationList',
                    // component:QuotationList,
                    component:function(resolve){
                        require(['../components/Quotation/QuotationList.vue'], resolve);
                    }
                },
                {
                    name:'QuotationApproval',
                    path:'/QuotationApproval',
                    // component:QuotationApproval,
                    component:function(resolve){
                        require(['../components/Quotation/QuotationApproval.vue'], resolve);
                    }
                },
                {
                    name:"InquirySheet",
                    path:'/InquirySheet',
                    // component:InquirySheet,
                    component:function(resolve){
                        require(['../components/Inquiry/InquirySheet.vue'], resolve);
                    }
                },//询价清单
                {
                    name:'OneTouchPrice',
                    path:'/OneTouchPrice',
                    // component:QuotationList,
                    component:function(resolve){
                        require(['../components/Inquiry/OneTouchPrice.vue'], resolve);
                    }
                },//一键生成有效价格            
                {
                    name:"CreateInquirySheet",
                    path:'/CreateInquirySheet',
                    // component:CreateInquirySheet,
                    component:function(resolve){
                        require(['../components/Inquiry/CreateInquirySheet.vue'], resolve);
                    }
                },    //创建询价清单
                {
                    name:"SeeInquirySheet/:code",
                    path:'/SeeInquirySheet',
                    // component:SeeInquirySheet,
                    component:function(resolve){
                        require(['../components/Inquiry/SeeInquirySheet.vue'], resolve);
                    }
                },    //查看询价清单
                {
                    name:"ModifyInquirySheet/:code",
                    path:'/ModifyInquirySheet',
                    // component:ModifyInquirySheet,
                    component:function(resolve){
                        require(['../components/Inquiry/ModifyInquirySheet.vue'], resolve);
                    }
                },    //修改询价清单
                {
                    name:"SparePlan",
                    path:'/SparePlan',
                    // component:SparePlan,
                    component:function(resolve){
                        require(['../components/SparePlan/SparePlan.vue'], resolve);
                    }
                },    // 备件计划  默认采购计划
                {
                    name:"DemandForecast",
                    path:'/DemandForecast',
                    // component:SparePlan,
                    component:function(resolve){
                        require(['../components/SparePlan/DemandForecast.vue'], resolve);
                    }
                },    // 备件计划  默认采购计划
                {
                    name:"CreatePlan",
                    path:'/CreatePlan',
                    // component:CreatePlan,
                    component:function(resolve){
                        require(['../components/SparePlan/CreatePlan.vue'], resolve);
                    }
                },
                {
                    name:"ChangePlan",
                    path:'/ChangePlan',
                    // component:ChangePlan,
                    component:function(resolve){
                        require(['../components/SparePlan/ChangePlan.vue'], resolve);
                    }
                },
                {
                    name:"CheckPlan",
                    path:'/CheckPlan',
                    // component:CheckPlan,
                    component:function(resolve){
                        require(['../components/SparePlan/CheckPlan.vue'], resolve);
                    }
                },
                {
                    name:"PlannedDistribution",
                    path:'/PlannedDistribution',
                    // component:PlannedDistribution,
                    component:function(resolve){
                        require(['../components/PO/PlannedDistribution.vue'], resolve);
                    }
                },  //计划分配
                {
                    name:"SpareOrder",
                    path:'/SpareOrder',
                    // component:SpareOrder,
                    component:function(resolve){
                        require(['../components/PO/SpareOrder.vue'], resolve);
                    }
                },//备件订单
                {
                    name:"CreatePO",
                    path:'/CreatePO',
                    // component:CreatePO,
                    component:function(resolve){
                        require(['../components/PO/CreatePO.vue'], resolve);
                    }
                },      //创建PO
                {
                    name:"SeePO",
                    path:'/SeePO',
                    // component:SeePO,
                    component:function(resolve){
                        require(['../components/PO/SeePO.vue'], resolve);
                    }
                },      //查看PO
                {
                    name:"PrintPO",
                    path:'/PrintPO',
                    // component:SeePO,
                    component:function(resolve){
                        require(['../components/PO/PrintPO.vue'], resolve);
                    }
                },      //打印PO
                {
                    name:"PrintPOEn",
                    path:'/PrintPOEn',
                    // component:SeePO,
                    component:function(resolve){
                        require(['../components/PO/PrintPOEn.vue'], resolve);
                    }
                },////打印PO En
                {
                    name:"ChangePO",
                    path:'/ChangePO',
                    // component:ChangePO,
                    component:function(resolve){
                        require(['../components/PO/ChangePO.vue'], resolve);
                    }
                },      //修改PO
                {
                    name:"POTracking",
                    path:'/POTracking',
                    // component:POTracking,
                    component:function(resolve){
                        require(['../components/PO/POTracking.vue'], resolve);
                    }
                },  //PO跟踪
                {
                    name:"PlanTracking",
                    path:'/PlanTracking',
                    // component:PlanTracking,
                    component:function(resolve){
                        require(['../components/PO/PlanTracking.vue'], resolve);
                    }
                },  //计划执行跟踪
                {
                    name:"NoticeDeliverySheet",
                    path:'/NoticeDeliverySheet',
                    // component:NoticeDeliverySheet,
                    component:function(resolve){
                        require(['../components/NoticeDelivery/NoticeDeliverySheet.vue'], resolve);
                    }
                },      //通知送货
                {
                    name:"CreateNoticeSheet",
                    path:'/CreateNoticeSheet',
                    // component:CreateNoticeSheet,
                    component:function(resolve){
                        require(['../components/NoticeDelivery/CreateNoticeSheet.vue'], resolve);
                    }
                },      //送货通知单
                {
                    name:"DeliveryNoticeSheet",
                    path:'/DeliveryNoticeSheet',
                    // component:DeliveryNoticeSheet,
                    component:function(resolve){
                        require(['../components/NoticeDelivery/DeliveryNoticeSheet.vue'], resolve);
                    }
                },      //送货通知
                {
                    name:"CreateDeliverySheet",
                    path:'/CreateDeliverySheet',
                    // component:CreateDeliverySheet,
                    component:function(resolve){
                        require(['../components/NoticeDelivery/CreateDeliverySheet.vue'], resolve);
                    }
                },      //送货单
                {
                    name:"PreInventorySheet",
                    path:'/PreInventorySheet',
                    // component:CreateDeliverySheet,
                    component:function(resolve){
                        require(['../components/NoticeDelivery/PreInventorySheet.vue'], resolve);
                    }
                },      //预入库单清单
                {
                    name:"CheckPreSheet",
                    path:'/CheckPreSheet',
                    // component:CreateDeliverySheet,
                    component:function(resolve){
                        require(['../components/NoticeDelivery/CheckPreSheet.vue'], resolve);
                    }
                },      //预入库单清单查看
                {
                    name:"UpdatePreSheet",
                    path:'/UpdatePreSheet',
                    // component:CreateDeliverySheet,
                    component:function(resolve){
                        require(['../components/NoticeDelivery/UpdatePreSheet.vue'], resolve);
                    }
                },      //预入库单清单修改
                {
                    name:"Delegation",
                    path:'/Delegation',
                    // component:CreateDeliverySheet,
                    component:function(resolve){
                        require(['../components/SystemConfiguration/Delegation.vue'], resolve);
                    }
                },      //权限委托
                {
                    name:"CorporateFactory",
                    path:'/CorporateFactory',
                    // component:CreateDeliverySheet,
                    component:function(resolve){
                        require(['../components/BasicData/CorporateFactory.vue'], resolve);
                    }
                },      //法人工厂设置
                {
                    name:"TemplateDownload",
                    path:'/TemplateDownload',
                    // component:TemplateDownload,
                    component:function(resolve){
                        require(['../components/TemplateDownload.vue'], resolve);
                    }
                },      //模板下载
                {
                    name:"TaxCodeTaxRate",
                    path:'/TaxCodeTaxRate',
                    // component:TaxCodeTaxRate,
                    component:function(resolve){
                        require(['../components/BasicData/TaxCodeTaxRate.vue'], resolve);
                    }
                },      //税码税率设置
                {
                    name:"SpareCostPrice",
                    path:'/SpareCostPrice',
                    // component:SpareCostPrice,
                    component:function(resolve){
                        require(['../components/BasicData/SpareCostPrice.vue'], resolve);
                    }
                },      //备件设置
                {
                    name:"BeiJian",
                    path:'/BeiJian',
                    // component:SpareSubclass,
                    component:function(resolve){
                        require(['../components/BasicData/BeiJian.vue'], resolve);
                    }
                },      //备件成本价
                {
                    name:"SpareSubclass",
                    path:'/SpareSubclass',
                    // component:SpareSubclass,
                    component:function(resolve){
                        require(['../components/BasicData/SpareSubclass.vue'], resolve);
                    }
                }
                ,      //备件成本价
                {
                    name:"FaZhi",
                    path:'/Fazhi',
                    // component:SpareSubclass,
                    component:function(resolve){
                        require(['../components/BasicData/Fazhi.vue'], resolve);
                    }
                },      //备件小类
                {
                    name:"PlanCategory",
                    path:'/PlanCategory',
                    // component:PlanCategory,
                    component:function(resolve){
                        require(['../components/BasicData/PlanCategory.vue'], resolve);
                    }
                },      //计划大类
                {
                    name:"StockIdentification",
                    path:'/StockIdentification',
                    // component:StockIdentification,
                    component:function(resolve){
                        require(['../components/InventorySettings/StockIdentification.vue'], resolve);
                    }
                },      //库存标识
                {
                    name:"StoreroomSetting",
                    path:'/StoreroomSetting',
                    // component:StoreroomSetting,
                    component:function(resolve){
                        require(['../components/InventorySettings/StoreroomSetting.vue'], resolve);
                    }
                },      //库房设置
                {
                    name:"ReservoirAttributes",
                    path:'/ReservoirAttributes',
                    // component:ReservoirAttributes,
                    component:function(resolve){
                        require(['../components/InventorySettings/ReservoirAttributes.vue'], resolve);
                    }
                },      //库区属性
                {
                    name:"WarehouseArea",
                    path:'/WarehouseArea',
                    // component:WarehouseArea,
                    component:function(resolve){
                        require(['../components/InventorySettings/WarehouseArea.vue'], resolve);
                    }
                },      //库房库区
                {
                    name:"WarehousePosition",
                    path:'/WarehousePosition',
                    // component:WarehousePosition,
                    component:function(resolve){
                        require(['../components/InventorySettings/WarehousePosition.vue'], resolve);
                    }
                },
                {
                    name:"Store",
                    path:'/Store',
                    // component:WarehousePosition,
                    component:function(resolve){
                        require(['../components/Store/Store.vue'], resolve);
                    }
                },
                //库房库位
                {
                    name:"WarehouseOwnership",
                    path:'/WarehouseOwnership',
                    // component:WarehouseOwnership,
                    component:function(resolve){
                        require(['../components/InventorySettings/WarehouseOwnership/WarehouseOwnership.vue'], resolve);
                    }
                },      //库房归属
                {
                    name:"CreateWarehouseOwnership",
                    path:'/CreateWarehouseOwnership',
                    // component:CreateWarehouseOwnership,
                    component:function(resolve){
                        require(['../components/InventorySettings/WarehouseOwnership/CreateWarehouseOwnership.vue'], resolve);
                    }
                },      //新增库房归属
                {
                    name:"UpdateWarehouseOwnership",
                    path:'/UpdateWarehouseOwnership',
                    // component:UpdateWarehouseOwnership,
                    component:function(resolve){
                        require(['../components/InventorySettings/WarehouseOwnership/UpdateWarehouseOwnership.vue'], resolve);
                    }
                },      //修改库房归属
                {
                    name:"SeeWarehouseOwnership",
                    path:'/SeeWarehouseOwnership',
                    // component:SeeWarehouseOwnership,
                    component:function(resolve){
                        require(['../components/InventorySettings/WarehouseOwnership/SeeWarehouseOwnership.vue'], resolve);
                    }
                },      //查看库房归属
                {
                    name:"WarehousePersonnelAuthority",
                    path:'/WarehousePersonnelAuthority',
                    // component:WarehousePersonnelAuthority,
                    component:function(resolve){
                        require(['../components/InventorySettings/WarehousePersonnelAuthority.vue'], resolve);
                    }
                },      //库房人员权限
                {
                    name:"ProductLine",
                    path:'/ProductLine',
                    component:function(resolve){
                        require(['../components/BasicData/ProductLine.vue'], resolve);
                    }
                },      //产品线设置
                {
                    name:"ProductLineStaffing",
                    path:'/ProductLineStaffing',
                    component:function(resolve){
                        require(['../components/BasicData/ProductLineStaffing.vue'], resolve);
                    }
                },      //产品线人员设置




                {
                    name:"EngineeringReplacement",
                    path:'/EngineeringReplacement',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/EngineeringReplacement/EngineeringReplacement.vue'], resolve);
                    }
                },    // 工程替换 
                {
                    name:"CreateEReplacement",
                    path:'/CreateEReplacement',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/EngineeringReplacement/CreateEReplacement.vue'], resolve);
                    }
                },    // 新增工程替换
                {
                    name:"UpdateEReplacement",
                    path:'/UpdateEReplacement',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/EngineeringReplacement/UpdateEReplacement.vue'], resolve);
                    }
                },    // 修改工程替换
                {
                    name:"SeeEReplacement",
                    path:'/SeeEReplacement',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/EngineeringReplacement/SeeEReplacement.vue'], resolve);
                    }
                },    // 查看工程替换
                {
                    name:"EngineeringReplacementTeam",
                    path:'/EngineeringReplacementTeam',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/EngineeringReplacementTeam/EngineeringReplacementTeam.vue'], resolve);
                    }
                },    // 工程替换组  
                {
                    name:"CreateEReplacementTeam",
                    path:'/CreateEReplacementTeam',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/EngineeringReplacementTeam/CreateEReplacementTeam.vue'], resolve);
                    }
                },    // 新增工程替换组
                {
                    name:"UpdateEReplacementTeam",
                    path:'/UpdateEReplacementTeam',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/EngineeringReplacementTeam/UpdateEReplacementTeam.vue'], resolve);
                    }
                },    // 修改工程替换组
                {
                    name:"SeeEReplacementTeam",
                    path:'/SeeEReplacementTeam',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/EngineeringReplacementTeam/SeeEReplacementTeam.vue'], resolve);
                    }
                },    // 查看工程替换组
                {
                    name:"EReplacementConfirmation",
                    path:'/EReplacementConfirmation',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/EReplacementConfirmation.vue'], resolve);
                    }
                },    // 替换确认
                {
                    name:"SpareParameterMaintenance",
                    path:'/SpareParameterMaintenance',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/SpareParameterMaintenance.vue'], resolve);
                    }
                },    // 备件参数维护
                {
                    name:"SpareParameterSetting",
                    path:'/SpareParameterSetting',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/SpareParameterSetting.vue'], resolve);
                    }
                },    // 备件参数设置
                {
                    name:"SupplyReplacementUnit",
                    path:'/SupplyReplacementUnit',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/SupplyReplacementUnit.vue'], resolve);
                    }
                },    // 供货替换组
                {
                    name:"barCodeCreate",
                    path:'/barCodeCreate',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/barCode/Create.vue'], resolve);
                    }
                },    // 条码生成
                {
                    name:"barCodeList",
                    path:'/barCodeList',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/barCode/List.vue'], resolve);
                    }
                },    // 条码列表
                {
                    name:"TestLend",
                    path:'/TestLend',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/TestLend/TestLend.vue'], resolve);
                    }
                },    // 检验借出
                {
                    name:"IqcOutApply",
                    path:'/IqcOutApply',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/TestLend/IqcOutApply.vue'], resolve);
                    }
                },       //IQC检验出库申请
                {
                    name:"RmcOutApply",
                    path:'/RmcOutApply',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/TestLend/RmcOutApply.vue'], resolve);
                    }
                },       //RMC检验出库申请
                {
                    name:"TestLendReturn",
                    path:'/TestLendReturn',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/TestLend/TestLendReturn.vue'], resolve);
                    }
                },    // 检验借出归还
                {
                    name:"updateTeLeReturn",
                    path:'/updateTeLeReturn',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/TestLend/updateTeLeReturn.vue'], resolve);
                    }
                },    // 检验借出归还修改
                {
                    name:"TestRecord",
                    path:'/TestRecord',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/TestRecord/TestRecord.vue'], resolve);
                    }
                },      //检验记录
                {
                    name:"CreateTestRecord",
                    path:'/CreateTestRecord',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/TestRecord/CreateTestRecord.vue'], resolve);
                    }
                },       //新增检验记录
                {
                    name:"UpdateTestRecord",
                    path:'/UpdateTestRecord',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/TestRecord/UpdateTestRecord.vue'], resolve);
                    }
                },       //修改检验记录
                {
                    name:"JudgeTestRecord",
                    path:'/JudgeTestRecord',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/TestRecord/JudgeTestRecord.vue'], resolve);
                    }
                },       //检验判定
                {
                    name:"SpareDOA",
                    path:'/SpareDOA',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/SpareDOA/SpareDOA.vue'], resolve);
                    }
                },       //备件DOA备案
                {
                    name:"CreateSpareDOA",
                    path:'/CreateSpareDOA',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/SpareDOA/CreateSpareDOA.vue'], resolve);
                    }
                },       //新增备件DOA备案
                {
                    name:"SpareDOAdeal",
                    path:'/SpareDOAdeal',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/SpareDOA/SpareDOAdeal.vue'], resolve);
                    }
                },       //备件DOA处理
                {
                    name:"AutoExam",
                    path:'/AutoExam',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/SpareDOA/AutoExam.vue'], resolve);
                    }
                },       //DOA自动审核
                {
                    name:"RetestStep",
                    path:'/RetestStep',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/SpareDOA/RetestStep.vue'], resolve);
                    }
                },       //DOA复测步骤
                {
                    name:"SpareQualityTestPlan",
                    path:'/SpareQualityTestPlan',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/SpareQualityTestPlan/SpareQualityTestPlan.vue'], resolve);
                    }
                },       //备件质检计划
                {
                    name:"CreateSpareQualityTestPlan",
                    path:'/CreateSpareQualityTestPlan',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/SpareQualityTestPlan/CreateSpareQualityTestPlan.vue'], resolve);
                    }
                },       //新增备件质检计划
                {
                    name:"UpdateSpareQualityTestPlan",
                    path:'/UpdateSpareQualityTestPlan',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/SpareQualityTestPlan/UpdateSpareQualityTestPlan.vue'], resolve);
                    }
                },       //修改备件质检计划
                {
                    name:"ExamOrSeeSpareQualityTestPlan",
                    path:'/ExamOrSeeSpareQualityTestPlan',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/SpareQualityTestPlan/ExamOrSeeSpareQualityTestPlan.vue'], resolve);
                    }
                },       //审核备件质检计划
                {
                    name:"Fault",
                    path:'/Fault',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/Fault.vue'], resolve);
                    }
                },       //故障
                {
                    name:"ShortFailure",
                    path:'/ShortFailure',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/ShortFailure.vue'], resolve);
                    }
                },       //短期失效标准
                {
                    name:"NTFsampling",
                    path:'/NTFsampling',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/NTFsampling.vue'], resolve);
                    }
                },       //NTF抽样
                {
                    name:"NonLossStandard",
                    path:'/NonLossStandard',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/NonLossCID/NonLossStandard.vue'], resolve);
                    }
                },       //非损标准
                {
                    name:"NonLossRegister",
                    path:'/NonLossRegister',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/NonLossCID/NonLossRegister.vue'], resolve);
                    }
                },       //非损登记
                {
                    name:"InspectionStandardSetting",
                    path:'/InspectionStandardSetting',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/Test/InspectionStandardSetting.vue'], resolve);
                    }
                },        // 检验标准设置
                {
                    name:"InspectionLevelSetting",
                    path:'/InspectionLevelSetting',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/Test/InspectionLevelSetting.vue'], resolve);
                    }
                },        // 检验水平设置
                {
                    name:"CheckAQLSettings",
                    path:'/CheckAQLSettings',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/Test/CheckAQLSettings.vue'], resolve);
                    }
                },        // 检验AOL设置
                {
                    name:"TestReturn",
                    path:'/TestReturn',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/Test/TestReturn/TestReturn.vue'], resolve);
                    }
                },        // 检验归还
                {
                    name:"NewInspectionReturnSheet",
                    path:'/NewInspectionReturnSheet',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/Test/TestReturn/NewInspectionReturnSheet.vue'], resolve);
                    }
                },        // 新增检验归还单
                {
                    name:"BatchQualityProblem",
                    path:'/BatchQualityProblem',
                    component:function(resolve){
                        require(['../components/EngineeringManagement/QualityTesting/BatchQualityProblem.vue'], resolve);
                    }
                }        // 批量质量问题
            ]
        }//主页面

    ]
});

// ================================
const app=new Vue({
    router:router,
    store,
    render: h => h(App)
}).$mount('#app');
